package demo.virtuemart.category;

import java.util.Properties;

import org.apache.log4j.Logger;
import org.testng.SkipException;
import org.testng.annotations.BeforeSuite;

import demo.virtuemart.Util.TestUtil;
import demo.virtuemart.base.TestBase;

public class TestSuiteBase extends TestBase{
	
	@BeforeSuite
	public void checkSuiteSkip() throws Throwable
	{
	   initialize();
	   logs.debug("Initialized");
	   if(!TestUtil.isSuiteRunnable(xlsSuite, "Category Layout"))
		{
			 logs.debug("Log Message---- Skipping the test case" +this.getClass().getSimpleName()+"as the run mode set to no");
			throw new SkipException("Skipping the test case" +this.getClass().getSimpleName()+"as the run mode set to no");
		}
	   
	}

}
